import { configureStore } from '@reduxjs/toolkit'
import userReduce, { UserStateType } from './userReduce'
import componentsReducer, { ComponentStateType } from './componentsReducer'
export type StateType = {
  user: UserStateType
  components: ComponentStateType
}
export default configureStore({
  reducer: {
    //分模块
    user: userReduce,
    components: componentsReducer,
  },
})
